let focus = {}

focus = {
    inserted: function (el, option) {
        const value = {
            class: 'el-input',
            tag: 'input',
            focus: option.value
        }
        if (value.focus && el.classList.contains(value.class)) {
            el.getElementsByTagName(value.tag)[0].focus();
        }
    }
}

export default focus
